package mybatis.mapper;

import mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface UserDao {
    List<User> selectUserByAccount(@Param("user") HashMap<String, Object> user);

    int addAccount(@Param("user") HashMap<String, Object> user);

    int deleteAccount(@Param("id") int id);

    int updateAccount(@Param("user") HashMap<String,Object> user);
}
